package cn.org.custom.client.responseHandler;

import cn.org.custom.message.PongMessage;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import lombok.extern.slf4j.Slf4j;


@Slf4j
public class PongMessageHandler extends SimpleChannelInboundHandler<PongMessage> {
    @Override
    protected void channelRead0(ChannelHandlerContext channelHandlerContext, PongMessage pongMessage) throws Exception {
        log.info("pong: {}", pongMessage.getMessage());
    }
}
